import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import router from './router';
import { RouterProvider } from 'react-router-dom';
import { Provider } from 'react-redux';

// 导入 store
import store from './store';

// 导入样式
import '@/styles/index.css';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // 注册store
  <Provider store={store}>
    {/* 注册router */}
    <RouterProvider router={router}></RouterProvider>
  </Provider>
);
